package com.omybug.study.config;

import com.omybug.study.entity.Car;
import org.springframework.beans.factory.FactoryBean;

public class CardFactoryBean implements FactoryBean<Car> {
    public Car getObject() throws Exception {
        return new Car();
    }

    public Class<?> getObjectType() {
        return Car.class;
    }

    /**
     * 当前类是否单例
     * @return
     */
    public boolean isSingleton() {
        return true;
    }
}
